<clr-modal [(clrModalOpen)]="opened">
    <h3 class="modal-title">{{'APP_EDIT'|translate}}</h3>
    <div class="modal-body modal-height">
        <form clrForm #userForm='ngForm'>
            <clr-input-container>
                <label>{{"APP_NAME"|translate}}</label>
                <input clrInput [size]="32" name="name" [(ngModel)]="item.name" readonly/>
            </clr-input-container>
            <clr-input-container>
                <label>{{"APP_EMAIL"|translate}}</label>
                <input clrInput [size]="32" name="email" [(ngModel)]="itemEmail"
                       [email]="true"
                       required/>
                <clr-control-error>{{'APP_EMAIL_ERROR_MSG'|translate}}</clr-control-error>
            </clr-input-container>
        </form>
        <app-modal-alert></app-modal-alert>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-outline" (click)="onCancel()"
                [disabled]="isSubmitGoing">{{'APP_CANCEL'|translate}}</button>
        <button type="submit" class="btn btn-primary" (click)="onSubmit()"
                [disabled]="userForm.invalid ">{{'APP_COMMIT'|translate}}
        </button>
    </div>
</clr-modal>
